<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
$(document).ready(function() {    
	var container = $.leaveContainer().id("c-1"); 
	var header    = $.leaveHeader().caption("메뉴")
						.addLeft($.leaveButton().caption("Home").type("").click(function () {container.moveLeftContainer();}))
						.addRight($.leaveButton().caption("Back").type("").click(function () {history.back(1);}));
 
	var content   = $.leaveContent(); 
	var footer    = $.leaveFooter(); 
	var copyright = $.leaveCopyright();
	 
 
	
	container.header(header);
	container.content(content.add(
		$.leaveGrid().id("zzzz1").caption("메뉴").data(
			[{"id" : 1, "a" : "정치뉴스"}, 
			{"id" : 2, "a" : "스포츠뉴스"}, 
			{"id" : 3, "a" : "스포츠뉴스"}, 
			{"id" : 4, "a" : "스포츠뉴스"}, 
			{"id" : 5, "a" : "스포츠뉴스"}, 
			{"id" : 6, "a" : "스포츠뉴스"}, 
			{"id" : 7, "a" : "스포츠뉴스"}, 
			{"id" : 8, "a" : "스포츠뉴스"}, 
			{"id" : 9, "a" : "스포츠뉴스"}, 
			{"id" : 10, "a" : "스포츠뉴스"}, 
			{"id" : 11, "a" : "스포츠뉴스"}, 
			{"id" : 12, "a" : "스포츠뉴스"}, 
			{"id" : 13, "a" : "스포츠뉴스"}, 
			{"id" : 14, "a" : "스포츠뉴스"}, 
			{"id" : 15, "a" : "스포츠뉴스"}, 
			{"id" : 16, "a" : "스포츠뉴스"}, 			
			{"id" : 17,  "a" : "사회경제"}
			
			]
		).touch(function(index, data) {
			location.href = '${pageContext.request.contextPath}/sample/form.do?id=' + data.id;
		})		
	));
	container.footer(footer); 
	container.copyright(copyright);
	
	container.render(); 
 	 
});